<?php

namespace app\controller;

use app\BaseController;
use app\Request;
use app\services\NoticeService;
use app\utils\AppRespUtil;

class Notice extends BaseController
{
    public function creditCardRepaymentNotice(Request $request)
    {
        return AppRespUtil::success((new NoticeService($request->userInfo, []))->creditCardRepaymentNotice());
    }

    public function creditCardPayNotice(Request $request)
    {
        return AppRespUtil::success((new NoticeService($request->userInfo, []))->creditCardPayNotice());
    }

    public function repaymentNotice(Request $request)
    {
        return AppRespUtil::success((new NoticeService($request->userInfo, []))->repaymentNotice());
    }

    public function birthdayNotice(Request $request)
    {
        return AppRespUtil::success((new NoticeService($request->userInfo, []))->birthdayNotice());
    }

    public function expireNotice(Request $request)
    {
        return AppRespUtil::success((new NoticeService($request->userInfo, []))->expireNotice());
    }
}